#include"kbhit.h"
#include<iostream>
#include"conio.h"
using namespace std;

int main()
{
	char ch;
	while(1)
	{
		if(kbhit())
		{
			ch = getch();
		       if(ch == '\n')
		       		break;
			cout<<ch<<endl;	       
		}
	}
}
